cpp-sdl2
C++ header-only SDL2 wrapper
sdl::simd::deleter< T[]> Class Template Reference

deleter usable with std::unique_ptr<T[]>. More...

#include <simd.hpp>

Public Member Functions

 deleter ()=delete
 
constexpr deleter (std::size_t size) noexcept
 
template<typename U , typename = std::enable_if_t<std::is_convertible_v<U (*)[], T (*)[]>>>
constexpr deleter (deleter< U[]> const &other) noexcept
 
template<typename U >
auto operator() (U *ptr) -> std::enable_if_t< std::is_convertible_v< U(*)[], T(*)[]>>
 

Private Attributes

std::size_t count = 0
 

Detailed Description

template<typename T>
class sdl::simd::deleter< T[]>

deleter usable with std::unique_ptr<T[]>.

Definition at line 101 of file simd.hpp.

Constructor & Destructor Documentation

◆ deleter() [1/3]

template<typename T >
sdl::simd::deleter< T[]>::deleter ( )
delete

◆ deleter() [2/3]

template<typename T >
constexpr sdl::simd::deleter< T[]>::deleter ( std::size_t  size)
inlineexplicitnoexcept

Definition at line 108 of file simd.hpp.

◆ deleter() [3/3]

template<typename T >
template<typename U , typename = std::enable_if_t<std::is_convertible_v<U (*)[], T (*)[]>>>
constexpr sdl::simd::deleter< T[]>::deleter ( deleter< U[]> const &  other)
inlineexplicitnoexcept

Definition at line 111 of file simd.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
template<typename U >
auto sdl::simd::deleter< T[]>::operator() ( U *  ptr) -> std::enable_if_t<std::is_convertible_v<U (*)[], T (*)[]>>
inline

Definition at line 116 of file simd.hpp.

References sdl::simd::details::destroy_at(), and sdl::simd::free().

Member Data Documentation

◆ count

template<typename T >
std::size_t sdl::simd::deleter< T[]>::count = 0
private

Definition at line 103 of file simd.hpp.


The documentation for this class was generated from the following file: